Luca Bruno [Tue, 5 Apr 2016 20:24:34 +0000 (22:24 +0200)]
cargo 0.8.0-2
Luca Bruno [Tue, 5 Apr 2016 20:20:26 +0000 (22:20 +0200)]
control: prefer libcurl4-gnutls-dev for building (Closes: #819831)
libgit2 recently switched to libcurl4-gnutls-dev, while cargo used to build
with libcurl4-openssl-dev. We try align with libgit2 here.
Luca Bruno [Sun, 6 Mar 2016 08:20:01 +0000 (09:20 +0100)]
cargo 0.8.0-1
Luca Bruno [Sat, 5 Mar 2016 21:48:59 +0000 (22:48 +0100)]
changelog: preparing new upstream release
Luca Bruno [Sat, 5 Mar 2016 21:38:35 +0000 (22:38 +0100)]
cargo: remove unused lintian overrides
Luca Bruno [Sat, 5 Mar 2016 21:32:13 +0000 (22:32 +0100)]
patches: refresh for deps
Luca Bruno [Sat, 5 Mar 2016 21:24:35 +0000 (22:24 +0100)]
deps: update for 0.8.0
Luca Bruno [Sat, 5 Mar 2016 21:21:23 +0000 (22:21 +0100)]
patches: clean cargo deps
Luca Bruno [Sat, 5 Mar 2016 19:55:51 +0000 (20:55 +0100)]
Merge tag 'upstream/0.8.0' into debian/sid
Upstream version 0.8.0
Luca Bruno [Sat, 5 Mar 2016 19:55:44 +0000 (20:55 +0100)]
Imported Upstream version 0.8.0
Luca Bruno [Thu, 3 Mar 2016 21:21:02 +0000 (22:21 +0100)]
cargo 0.7.0-2
Luca Bruno [Thu, 3 Mar 2016 21:12:42 +0000 (22:12 +0100)]
control: update build-deps for build-profiles
Luca Bruno [Sun, 28 Feb 2016 10:41:14 +0000 (11:41 +0100)]
build: clean environment to allow multiple builds
Luca Bruno [Sun, 28 Feb 2016 10:16:05 +0000 (11:16 +0100)]
build: preserve original Cargo.lock for clean
Luca Bruno [Sun, 28 Feb 2016 10:11:33 +0000 (11:11 +0100)]
cargo-doc: do not build under nodoc profile
Luca Bruno [Sat, 27 Feb 2016 22:30:03 +0000 (23:30 +0100)]
cargo: add a new stage2 profile
Luca Bruno [Sun, 28 Feb 2016 09:55:41 +0000 (10:55 +0100)]
cargo-doc: update docbase paths after package split
Luca Bruno [Sun, 28 Feb 2016 09:49:59 +0000 (10:49 +0100)]
patches: do not reference remote jquery
Luca Bruno [Sat, 27 Feb 2016 22:30:54 +0000 (23:30 +0100)]
control: bump standards version
Luca Bruno [Sun, 14 Feb 2016 16:07:44 +0000 (17:07 +0100)]
Cosmetic fixes to make_orig_multi.sh
Luca Bruno [Sun, 14 Feb 2016 16:02:02 +0000 (17:02 +0100)]
Update to canonical Vcs-* URLs
Luca Bruno [Sun, 14 Feb 2016 15:22:02 +0000 (16:22 +0100)]
cargo 0.7.0-1
Luca Bruno [Sun, 14 Feb 2016 15:10:23 +0000 (16:10 +0100)]
rules: ask cargo to build verbosely
Luca Bruno [Sun, 14 Feb 2016 15:09:38 +0000 (16:09 +0100)]
patches: add clean-win-crates.patch
Luca Bruno [Sun, 14 Feb 2016 15:09:08 +0000 (16:09 +0100)]
patches: refresh debian/patches/libgit2-fixes.patch
Luca Bruno [Sun, 14 Feb 2016 15:06:53 +0000 (16:06 +0100)]
Import cargo_0.7.0.orig-deps.tar.gz
Luca Bruno [Sun, 14 Feb 2016 15:02:37 +0000 (16:02 +0100)]
Update make_orig_multi.sh
Luca Bruno [Sun, 14 Feb 2016 15:08:15 +0000 (16:08 +0100)]
patches: refresh clean-cargo-deps.patch
Luca Bruno [Sun, 14 Feb 2016 15:00:02 +0000 (16:00 +0100)]
debian: update deps-tarball filter
Luca Bruno [Sun, 14 Feb 2016 14:58:37 +0000 (15:58 +0100)]
pack.py: use the same TAR format as cargo
Luca Bruno [Sun, 14 Feb 2016 14:57:16 +0000 (15:57 +0100)]
Update README.source to current packaging
Luca Bruno [Sun, 14 Feb 2016 14:56:35 +0000 (15:56 +0100)]
Merge tag 'upstream/0.7.0' into debian/sid
Upstream version 0.7.0
Luca Bruno [Tue, 9 Feb 2016 22:42:31 +0000 (23:42 +0100)]
Imported Upstream version 0.7.0
Sylvestre Ledru [Tue, 26 Jan 2016 12:01:31 +0000 (13:01 +0100)]
cosmetic changes
bors [Sun, 17 Jan 2016 00:56:58 +0000 (00:56 +0000)]
Auto merge of #2287 - alexcrichton:openbsd, r=alexcrichton
cc @semarie
Alex Crichton [Sun, 17 Jan 2016 00:56:31 +0000 (16:56 -0800)]
Register an OpenBSD snapshot
bors [Fri, 15 Jan 2016 21:36:03 +0000 (21:36 +0000)]
Auto merge of #2281 - rillian:doc-nocapture, r=alexcrichton
Although this is a feature of rustc's test harness and
not cargo's test driver, I can never remember how to
invoke it. Describing the switch in `cargo test --help`
makes it more discoverable.
Ralph Giles [Fri, 15 Jan 2016 16:59:55 +0000 (08:59 -0800)]
Document --nocapture to reduce confusion running tests.
Although this is a feature of rustc's test harness and
not cargo's test driver, I can never remember how to
invoke it. Describing the switch in `cargo test --help`
makes it more discoverable.
bors [Fri, 15 Jan 2016 00:40:34 +0000 (00:40 +0000)]
Auto merge of #2279 - alexcrichton:rerun-if-changed-rust-file, r=brson
There was a failure mode of the handling of the rerun-if-changed directive where
it would rerun the build script twice before hitting a steady state of actually
processing the directives. The order of events that led to this were:
1. A project was built from a clean directory. Cargo recorded a fingerprint
indicating this (for the build script), but the fingerprint indicated that
the build script was a normal build script (no manually specified inputs)
because Cargo had no prior knowledge.
2. A project was then rebuilt from the same directory. Cargo's new fingerprint
for the build script now indicates that there is a custom list of
dependencies, but the previous fingerprint indicates there wasn't, so the
mismatch causes another rebuild.
3. All future rebuilds will agree that there are custom lists both before and
after, so the directives are processed as one would expect.
This commit does a bit of refactoring in the fingerprint module to fix this
situation. The recorded fingerprint in step (1) is now recorded as a "custom
dependencies are specified" fingerprint if, after the build script is run,
custom dependencies were specified.
Closes #2267
Alex Crichton [Wed, 13 Jan 2016 01:37:57 +0000 (17:37 -0800)]
Handle rerun-if-changed directives in dependencies
There was a failure mode of the handling of the rerun-if-changed directive where
it would rerun the build script twice before hitting a steady state of actually
processing the directives. The order of events that led to this were:
1. A project was built from a clean directory. Cargo recorded a fingerprint
indicating this (for the build script), but the fingerprint indicated that
the build script was a normal build script (no manually specified inputs)
because Cargo had no prior knowledge.
2. A project was then rebuilt from the same directory. Cargo's new fingerprint
for the build script now indicates that there is a custom list of
dependencies, but the previous fingerprint indicates there wasn't, so the
mismatch causes another rebuild.
3. All future rebuilds will agree that there are custom lists both before and
after, so the directives are processed as one would expect.
This commit does a bit of refactoring in the fingerprint module to fix this
situation. The recorded fingerprint in step (1) is now recorded as a "custom
dependencies are specified" fingerprint if, after the build script is run,
custom dependencies were specified.
Closes #2267
bors [Tue, 12 Jan 2016 18:48:03 +0000 (18:48 +0000)]
Auto merge of #2276 - alexcrichton:fix-nightly, r=alexcrichton
Just some tweaks to compiler error messages
bors [Tue, 12 Jan 2016 17:50:34 +0000 (17:50 +0000)]
Auto merge of #2228 - tbu-:pr_only_missing, r=alexcrichton
Alex Crichton [Tue, 12 Jan 2016 17:47:31 +0000 (09:47 -0800)]
Fix tests on nightly
bors [Tue, 12 Jan 2016 17:18:05 +0000 (17:18 +0000)]
Auto merge of #2269 - felixc:package-untracked-files, r=alexcrichton
The logic in `sources/path.rs` that finds files that are untracked by the version control system was incorrectly including files that *are* tracked, but had been modified without the modification being committed to Git.
This manifested itself as strange duplications of files (e.g. in `cargo package --list`), since they were listed once as tracked files, and once more as allegedly "untracked" ones. It also caused failures when trying to package the crate when files had been deleted, but the deletion was not yet committed to Git.
Fixes #2199
Felix Crux [Sun, 10 Jan 2016 19:47:02 +0000 (14:47 -0500)]
Fix listing of untracked files to not include tracked but modified ones
The logic in `sources/path.rs` that finds files that are untracked by the
version control system was incorrectly including files that *are* tracked,
but had been modified without the modification being committed to Git.
This manifested itself as strange duplications of files (e.g. in `cargo
package --list`), since they were listed once as tracked files, and once
more as allegedly "untracked" ones. It also caused failures when trying to
package the crate when files had been deleted, but the deletion was not
yet committed to Git.
Fixes #2199
Felix Crux [Tue, 12 Jan 2016 00:00:05 +0000 (19:00 -0500)]
Bump rand to 0.3.13
bors [Mon, 11 Jan 2016 22:44:56 +0000 (22:44 +0000)]
Auto merge of #2265 - dirk:dirk/include-publish-command-in-help, r=alexcrichton
This is pretty commonly-used command, so I think it merits inclusion in the help text.
bors [Mon, 11 Jan 2016 18:15:34 +0000 (18:15 +0000)]
Auto merge of #2257 - nrc:lib-template, r=alexcrichton
Tobias Bucher [Fri, 18 Dec 2015 12:27:08 +0000 (12:27 +0000)]
Only treat missing crate lists as empty
The motivation is that errors other than "file not found" could lead to
the file being overwritten by an empty config, e.g. if the `open` call
is interrupted and returns `EINTR`, then this code would read an empty
config and write it back later on. This can probably happen for other
errors as well (`ENFILE`, ...).
Dirk Gadsden [Fri, 8 Jan 2016 22:40:02 +0000 (14:40 -0800)]
Add publish command to list of commands in help text
Brian Anderson [Wed, 6 Jan 2016 18:40:33 +0000 (10:40 -0800)]
Merge pull request #2260 from durka/patch-4
doc/manifest: add `cargo run --example`
Brian Anderson [Wed, 6 Jan 2016 18:37:54 +0000 (10:37 -0800)]
Merge pull request #2243 from felixc/zsh-completion-options
Complete the definition of all options for zsh auto-completion
Alex Burka [Sun, 3 Jan 2016 02:04:17 +0000 (21:04 -0500)]
doc/manifest: add `cargo run --example`
Closes #2251. Should it be mentioned anywhere else as well?
Nick Cameron [Thu, 31 Dec 2015 03:12:56 +0000 (16:12 +1300)]
Tweak the new project template to be more idiomatic.
Sylvestre Ledru [Tue, 29 Dec 2015 09:04:03 +0000 (10:04 +0100)]
Introduce a cargo-doc package
Sylvestre Ledru [Tue, 29 Dec 2015 08:03:10 +0000 (09:03 +0100)]
Add the missing VCS- fields
Sylvestre Ledru [Tue, 29 Dec 2015 07:44:49 +0000 (08:44 +0100)]
Fails to build when wget is installed. Force curl (Closes: #809298)
Felix Crux [Wed, 23 Dec 2015 03:57:03 +0000 (22:57 -0500)]
Complete the definition of all options for zsh auto-completion
All commands can now auto-complete all of the options they support.
bors [Mon, 21 Dec 2015 16:09:43 +0000 (16:09 +0000)]
Auto merge of #2237 - sfackler:libc-0.2, r=alexcrichton
Also update everything else which removes all remaining libc 0.1
dependencies
Steven Fackler [Mon, 21 Dec 2015 04:47:04 +0000 (21:47 -0700)]
Fix windows
Steven Fackler [Sun, 20 Dec 2015 23:15:18 +0000 (16:15 -0700)]
Whitelist improper ctypes to support old rustc versions
Steven Fackler [Sun, 20 Dec 2015 22:58:55 +0000 (15:58 -0700)]
Bump libc to 0.2
Also update everything else which removes all remaining libc 0.1
dependencies
bors [Sun, 20 Dec 2015 06:22:11 +0000 (06:22 +0000)]
Auto merge of #2225 - sgrif:sg-doctest-link-args, r=alexcrichton
It is entirely possible for a crate to have a build script that is simply
the equivalent to
```rustc
fn main() {
println!("cargo:rustc-link-search=native=/some/path");
}
```
Without actually giving anything to link (for example, because the code
contains `#[link(name="foo")]`. In this case, we aren't actually passing
`-L` through when running doctests, even though they're passed when
compiling the main crate.
Fixes #1592
Sean Griffin [Sat, 19 Dec 2015 19:44:34 +0000 (12:44 -0700)]
Remove needless dylib check, add test
In this case the dylib check isn't actually doing anything useful, as
we're just appending search paths. Also adds a test for
8c65284b44337c6cfc003cedc8996e241ac678bd
bors [Sat, 19 Dec 2015 18:29:47 +0000 (18:29 +0000)]
Auto merge of #2233 - gentoo90:bash-comp, r=alexcrichton
bors [Sat, 19 Dec 2015 18:09:48 +0000 (18:09 +0000)]
Auto merge of #2235 - felixc:zsh-completion, r=alexcrichton
Adds missing rustc, rustdoc, search, and uninstall subcommands.
Removes obsolete config-for-key and config-list subcommands that don't exist anymore.
Felix Crux [Sat, 19 Dec 2015 00:11:32 +0000 (19:11 -0500)]
Add missing subcommands to zsh auto-completion
Specifically, rustc, rustdoc, search, and uninstall.
Felix Crux [Sat, 19 Dec 2015 00:01:55 +0000 (19:01 -0500)]
Remove obsolete commands from zsh auto-completion
The config-for-key and config-list subcommands don't exist.
gentoo90 [Sat, 19 Dec 2015 11:12:39 +0000 (13:12 +0200)]
Bashcomp: complete --bin, --bench and --test
bors [Sat, 19 Dec 2015 03:34:56 +0000 (03:34 +0000)]
Auto merge of #2232 - alexcrichton:unused, r=huonw
This includes alexcrichton/toml-rs@
39d77b6d which ensures that more unused
fields stick around when decoding TOML, allowing this to:
Closes #2230
bors [Sat, 19 Dec 2015 00:45:54 +0000 (00:45 +0000)]
Auto merge of #2231 - felixc:docstrings-for-all, r=alexcrichton
Almost all commands have info on what they are for, but a few were
missing it.
Also cleans up some copy/paste misdocumentation along the way.
Alex Crichton [Sat, 19 Dec 2015 00:33:17 +0000 (16:33 -0800)]
Update toml dependency to catch more unused keys
This includes alexcrichton/toml-rs@
39d77b6d which ensures that more unused
fields stick around when decoding TOML, allowing this to:
Closes #2230
Felix Crux [Fri, 18 Dec 2015 23:54:40 +0000 (18:54 -0500)]
Ensure all subcommands have summary description documentation
Almost all commands have info on what they are for, but a few were
missing it.
Also cleans up some copy/paste misdocumentation along the way.
bors [Fri, 18 Dec 2015 20:40:35 +0000 (20:40 +0000)]
Auto merge of #2226 - tshepang:unused, r=alexcrichton
bors [Fri, 18 Dec 2015 18:57:51 +0000 (18:57 +0000)]
Auto merge of #2224 - alexcrichton:rustc-dev, r=brson
This should allow compiling the specified target in the various profiles that
are available to it, e.g. bench or test in addition to the standard
dev.
Closes #2120
bors [Fri, 18 Dec 2015 18:43:14 +0000 (18:43 +0000)]
Auto merge of #2223 - alexcrichton:better-dev-experience, r=brson
Each test wants to be sure to reset HOME and remove CARGO_HOME from the
environment, but this was done inconsistently throughout the test suite. This
commit consolidates process creation so there's only one point for creating a
process ready to execute the Cargo that's being tested.
bors [Fri, 18 Dec 2015 17:38:01 +0000 (17:38 +0000)]
Auto merge of #2227 - tbu-:pr_pycache, r=alexcrichton
Running `make` creates the `src/etc/__pycache__` directory which should
not be checked in.
Tobias Bucher [Fri, 18 Dec 2015 12:28:08 +0000 (12:28 +0000)]
Add __pycache__ to .gitignore
Running `make` creates the `src/etc/__pycache__` directory which should
not be checked in.
Tshepang Lekhonkhobe [Fri, 18 Dec 2015 10:51:05 +0000 (12:51 +0200)]
remove unused imports
bors [Thu, 17 Dec 2015 23:08:10 +0000 (23:08 +0000)]
Auto merge of #2219 - matklad:encodable-audit, r=alexcrichton
@alexcrichton another preparation PR for #2196
I've removed obscure `metadata` field from `Target`. It is a breaking change (for read-manifest), but the field seemed cryptic, useless and untested :)
`Target` has a bunch of boolean fields:
```
tested: bool,
benched: bool,
doc: bool,
doctest: bool,
harness: bool, // whether to use the test harness (--test)
for_host: bool,
```
I guess they should not be included in serialized representation?
I will push commits for other `Encodable`s here.
Aleksey Kladov [Thu, 17 Dec 2015 18:50:11 +0000 (21:50 +0300)]
add more fields to SerializedDependency
Aleksey Kladov [Wed, 16 Dec 2015 22:04:19 +0000 (01:04 +0300)]
add more field to SerializedPackage
Sean Griffin [Thu, 17 Dec 2015 21:14:40 +0000 (14:14 -0700)]
Pass link search path to doctests even if build script gave no links
It is entirely possible for a crate to have a build script that is simply
the equivalent to
```rustc
fn main() {
println!("cargo:rustc-link-search=native=/some/path");
}
```
Without actually giving anything to link (for example, because the code
contains `#[link(name="foo")]`. In this case, we aren't actually passing
`-L` through when running doctests, even though they're passed when
compiling the main crate.
Fixes #1592
Alex Crichton [Thu, 17 Dec 2015 18:10:59 +0000 (10:10 -0800)]
Allow specifying profiles to `cargo rustc`
This should allow compiling the specified target in the various profiles that
are available to it, e.g. bench or test in addition to the standard
dev.
Closes #2120
Alex Crichton [Thu, 17 Dec 2015 17:53:14 +0000 (09:53 -0800)]
Consolidate creating processes in tests
Each test wants to be sure to reset HOME and remove CARGO_HOME from the
environment, but this was done inconsistently throughout the test suite. This
commit consolidates process creation so there's only one point for creating a
process ready to execute the Cargo that's being tested.
Aleksey Kladov [Wed, 16 Dec 2015 21:31:27 +0000 (00:31 +0300)]
remove unused Encodable impl for Manifest
bors [Wed, 16 Dec 2015 21:14:02 +0000 (21:14 +0000)]
Auto merge of #2217 - alexcrichton:cleanup, r=alexcrichton
This From impl has been around for awhile.
Alex Crichton [Wed, 16 Dec 2015 21:11:26 +0000 (13:11 -0800)]
Use try! instead of CliError::from_boxed
This From impl has been around for awhile.
Aleksey Kladov [Wed, 16 Dec 2015 21:10:58 +0000 (00:10 +0300)]
refactor Target serialization
Remove obscure `metadata` field and implement proper Encodable for
TargetKind becase default one is not used.
bors [Wed, 16 Dec 2015 16:12:29 +0000 (16:12 +0000)]
Auto merge of #2215 - JIghtuse:master, r=alexcrichton
Fixes #2197
Boris Egorov [Wed, 16 Dec 2015 07:49:33 +0000 (13:49 +0600)]
etc: Fix error message about missing Cargo snapshot
Fixes #2197
bors [Wed, 16 Dec 2015 04:51:56 +0000 (04:51 +0000)]
Auto merge of #2208 - leodasvacas:clippy, r=alexcrichton
Changes suggested by clippy. Mostly replacing `to_string()` with alternatives.
leonardo.yvens [Sat, 12 Dec 2015 18:19:11 +0000 (16:19 -0200)]
clippy run
bors [Mon, 14 Dec 2015 18:37:03 +0000 (18:37 +0000)]
Auto merge of #2209 - felixc:master, r=alexcrichton
Felix Crux [Mon, 14 Dec 2015 00:19:30 +0000 (19:19 -0500)]
Update zsh completion to include new 'install' command
bors [Sat, 12 Dec 2015 16:52:37 +0000 (16:52 +0000)]
Auto merge of #2207 - fhartwig:unused-import, r=alexcrichton
Florian Hartwig [Fri, 11 Dec 2015 19:21:24 +0000 (20:21 +0100)]
Remove unused import that breaks the build on rust nightly
bors [Thu, 10 Dec 2015 15:29:43 +0000 (15:29 +0000)]
Auto merge of #2204 - alexcrichton:bump, r=brson
r? @brson
Alex Crichton [Thu, 10 Dec 2015 15:26:17 +0000 (07:26 -0800)]
Bump to 0.8.0
bors [Tue, 8 Dec 2015 18:00:31 +0000 (18:00 +0000)]
Auto merge of #2165 - psyomn:fix-2125-dup-bins, r=alexcrichton
Alex, thank you for directing me to the right way.
I did some changes, and made it bail with the following message if duplicate binaries are detected:
````nocode
failed to parse manifest at `/home/psyomn/programming/rust/fork/badproj/Cargo.toml`
Caused by:
rejected binary name e: only unique binary names are accepted
````
I also added a test to check for this! Let me know if anything needs fixing.
ref #2125